<%@ page import="com.dbb.entity.company.Contact" %>



<div class="fieldcontain ${hasErrors(bean: contactInstance, field: 'nickname', 'error')} required">
	<label for="nickname">
		<g:message code="contact.nickname.label" default="Nickname" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="nickname" required="" value="${contactInstance?.nickname}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: contactInstance, field: 'address', 'error')} ">
	<label for="address">
		<g:message code="contact.address.label" default="Address" />
		
	</label>
	<g:textField name="address" value="${contactInstance?.address}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: contactInstance, field: 'cellphone', 'error')} ">
	<label for="cellphone">
		<g:message code="contact.cellphone.label" default="Cellphone" />
		
	</label>
	<g:textField name="cellphone" value="${contactInstance?.cellphone}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: contactInstance, field: 'cellphone1', 'error')} ">
	<label for="cellphone1">
		<g:message code="contact.cellphone1.label" default="Cellphone1" />
		
	</label>
	<g:textField name="cellphone1" value="${contactInstance?.cellphone1}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: contactInstance, field: 'company', 'error')} required">
	<label for="company">
		<g:message code="contact.company.label" default="Company" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="company" name="company.id" from="${com.dbb.entity.company.Company.list()}" optionKey="id" required="" value="${contactInstance?.company?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: contactInstance, field: 'email', 'error')} ">
	<label for="email">
		<g:message code="contact.email.label" default="Email" />
		
	</label>
	<g:textField name="email" value="${contactInstance?.email}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: contactInstance, field: 'firstname', 'error')} ">
	<label for="firstname">
		<g:message code="contact.firstname.label" default="Firstname" />
		
	</label>
	<g:textField name="firstname" value="${contactInstance?.firstname}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: contactInstance, field: 'lastName', 'error')} ">
	<label for="lastName">
		<g:message code="contact.lastName.label" default="Last Name" />
		
	</label>
	<g:textField name="lastName" value="${contactInstance?.lastName}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: contactInstance, field: 'telphone', 'error')} ">
	<label for="telphone">
		<g:message code="contact.telphone.label" default="Telphone" />
		
	</label>
	<g:textField name="telphone" value="${contactInstance?.telphone}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: contactInstance, field: 'telphone1', 'error')} ">
	<label for="telphone1">
		<g:message code="contact.telphone1.label" default="Telphone1" />
		
	</label>
	<g:textField name="telphone1" value="${contactInstance?.telphone1}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: contactInstance, field: 'title', 'error')} ">
	<label for="title">
		<g:message code="contact.title.label" default="Title" />
		
	</label>
	<g:textField name="title" value="${contactInstance?.title}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: contactInstance, field: 'zip', 'error')} ">
	<label for="zip">
		<g:message code="contact.zip.label" default="Zip" />
		
	</label>
	<g:textField name="zip" value="${contactInstance?.zip}"/>
</div>

